package com.chensi.model;

import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnore;

@SuppressWarnings("serial")
public class Demo implements Serializable{
	/** 主键 */
	private Integer id;
	/** 名字 */
	private String name;
	/** 排序 */
	private Integer sort;
	/** 状态     0正常  1待审核    */
	private Integer status;
	
	//vo
	
	//dto
	/** 不等于id（用于修改时候的判断重复） */
	@JsonIgnore
	private Integer idNe;
	@JsonIgnore
	private List<Demo> demoList;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getIdNe() {
		return idNe;
	}

	public void setIdNe(Integer idNe) {
		this.idNe = idNe;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public List<Demo> getDemoList() {
		return demoList;
	}

	public void setDemoList(List<Demo> demoList) {
		this.demoList = demoList;
	}

	public Demo() {
		super();
	}

	public Demo(Integer id, String name, Integer sort, Integer status) {
		super();
		this.id = id;
		this.name = name;
		this.sort = sort;
		this.status = status;
	}

	@Override
	public String toString() {
		return "Demo [id=" + id + ", name=" + name + ", sort=" + sort + ", status=" + status + "]";
	}

	
}
